<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<f:view xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:util="http://java.sun.com/jsf/composite/util">
	<ui:composition template="/views/layouts/mainPublic.xhtml">
	<ui:define name="content">
		<h:form id="formPrincipal">
			<util:messages grid="18" />
			
			<util:label value="#{i18n.Login_Email}" grid="12" />
			<util:div grid="12">
				<p:inputText value="#{contextoBean.usuario.email}" styleClass="width_12" 
				required="true" requiredMessage="#{i18n.Login_Required_Email}" />
			</util:div>
			
			<util:label value="#{i18n.Login_Senha}" grid="12"/>
			<util:div grid="12">
				<p:password value="#{contextoBean.usuario.senha}" styleClass="width_12" 
				required="true" requiredMessage="#{i18n.Login_Required_Senha}" 
				weakLabel="#{i18n.Login_WeakLabel}" goodLabel="#{i18n.Login_GoodLabel}"
				strongLabel="#{i18n.Login_StrongLabel}" />
			</util:div>
			
			<util:div grid="12">
				<br/>
				<p:commandButton ajax="false" action="#{contextoBean.doLogin}" 
					value="#{i18n.btn_Logar}" style="float:right" />
			</util:div>
		</h:form>
	</ui:define>
	</ui:composition>
</f:view>